package com.zlkj.pro.core.expander;

import cn.stylefeng.roses.kernel.config.api.context.ConfigContext;

public class WxConfigExpander {

    /**
     * 获取小程序AppId
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWxAppId() {
        return ConfigContext.me().getSysConfigValueWithDefault("WX_APP_ID", String.class, "");
    }

    /**
     * 获取小程序AppSecret
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWxAppSecret() {
        return ConfigContext.me().getSysConfigValueWithDefault("WX_APP_SECRET", String.class, "");
    }

    /**
     * 微信公众号AppId
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWechatAppId() {
        return ConfigContext.me().getSysConfigValueWithDefault("WECHAT_APP_ID", String.class, "");
    }

    /**
     * 微信公众号 EncodingAppSecret
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWechatAppSecret() {
        return ConfigContext.me().getSysConfigValueWithDefault("WECHAT_APP_SECRET", String.class, "");
    }

    /**
     * 微信公众号验证token
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWechatMaToken() {
        return ConfigContext.me().getSysConfigValueWithDefault("WX_MA_TOKEN", String.class, "");
    }

    /**
     * 微信公众号 EncodingAESKey
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWechatMaEncodingAESKey() {
        return ConfigContext.me().getSysConfigValueWithDefault("WX_MA_ENCODINGAESKEY", String.class, "");
    }

    /**
     * 微信公众号 EncodingAESKey
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWxaCodeUnlimitPage() {
        return ConfigContext.me().getSysConfigValueWithDefault("WX_CODE_UNLIMIT_PAGE", String.class, "");
    }

    /**
     * 微信模板消息id -- 发车通知
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWxTemplateIdDepartureV2() {
        return ConfigContext.me().getSysConfigValueWithDefault("VEHICLE_DEPARTURE_SUCCESSFUL_NOTIFICATION", String.class, "");
    }
    /**
     * 微信模板消息id -- 订单已结算
     *
     * @author lb
     * @date 2021/12/7 15:42
     */
    public static String getWxTemplateIdOrderWithdrawalNotice() {
        return ConfigContext.me().getSysConfigValueWithDefault("ORDER_SETTLEMENT_UCCESSFUL_NOTIFICATION", String.class, "");
    }


}
